package main.www.wonderfuldata.bean;

public class User2 {
        private String  name;
        private int idUser;
        private String password ;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIdUser() {
        return idUser;
    }

    public void setIdUser(int idUser) {
        this.idUser = idUser;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", idUser=" + idUser +
                ", password='" + password + '\'' +
                '}';
    }

    public User2(String name, int idUser, String password) {
        this.name = name;
        this.idUser = idUser;
        this.password = password;
    }

    //必须要有空的构造
    public User2(){

    }

}
